package com.example.service.impl;

import com.example.pojo.EducationExperience;
import com.example.mapper.EducationExperienceMapper;
import com.example.service.IEducationExperienceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 教育经历表 服务实现类
 * </p>
 *
 * @author wsl
 * @since 2022-04-13
 */
@Service
public class EducationExperienceServiceImpl extends ServiceImpl<EducationExperienceMapper, EducationExperience> implements IEducationExperienceService {

    @Autowired
    private EducationExperienceMapper eem;

    @Override
    public void insEEs(List<EducationExperience> experiences,Integer ruid) {
        experiences.forEach(ee ->{
            ee.setResumeId(ruid);
            eem.insert(ee);
        });
    }
}
